package JAVATest;

import java.util.Scanner;

/**
 * ClassName:Text_002
 * Package:JAVATest
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/10-18:13
 * @Version:v1.0
 */
public class Text_002 {
    //算术运算符综合练习
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("从键盘输入一个三位数：");
        int a= sc.nextInt();
        System.out.println("该数得个位数为：" + a%10);
        System.out.println("该数得十位数为：" + a/10%10);
        System.out.println("该数的百位数为：" + a/100%10);
    }
}
